import HmFind from '@/views/HmFind.vue'
import HmFriend from '@/views/HmFriend.vue'
import HmMine from '@/views/HmMine.vue'
import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(),
    // 路由规则数组：在数组中可以配置一个个路由对象
    // 一个路由对象 -> 路径和组件的映射关系
    routes: [
        { path: '/find', component: HmFind },
        { path: '/my', component: HmMine },
        { path: '/friend', component: HmFriend },
    ]
})

export default router